From 4fc98ae34566a8416a345ebdd2a51828f8192632 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 20 Feb 2015 08:23:53 -0500 Subject: [PATCH] scrolled window: Drop dead code The allocation is never used in this function, so don't bother getting it. --- gtk/gtkscrolledwindow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index ad40c08bd7..39dddc973f 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -2464,13 +2464,10 @@ gtk_scrolled_window_allocate_child (GtkScrolledWindow *swindow, GtkAllocation *relative_allocation) { GtkWidget *widget = GTK_WIDGET (swindow), *child; - GtkAllocation allocation; GtkAllocation child_allocation; child = gtk_bin_get_child (GTK_BIN (widget)); - gtk_widget_get_allocation (widget, &allocation); - gtk_scrolled_window_relative_allocation (widget, relative_allocation); child_allocation.x = relative_allocation->x; -- 2.30.2